// 性别枚举
enum Gender {
  Mael,
  Female,
}

// 自定义一个年级(高一、高二、高三)
type Grade = 1 | 2 | 3;

// 自定义一个学生类型
type Student = {
  name: string;
  age: number;
  gender: Gender;
  grade: Grade;
};

// 定义两个学生变量：s1、s2
let s1: Student;
let s2: Student;

s1 = { name: "张三", age: 18, gender: Gender.Mael, grade: 1 };
s2 = { name: "李四", age: 20, gender: Gender.Female, grade: 3 };
